how to Create and Append Element